﻿using Microsoft.AspNetCore.Identity;

namespace JwtWebApi.Models.Manage
{
    public class RoleModel
    {
        public RoleModel()
        {
        }

        public RoleModel(IdentityRole role)
        {
            Name = role.Name;
            role.NormalizedName = role.NormalizedName;
            Id = role.Id;
        }

        public string Id { get; set; }
        public string Name { get; set; }
        public string NormalizedName { get; set; }
    }
}